//
//  OosActivityEntry.m
//  Oos4ios
//
//  Created by Pablo Gonzalez on 3/29/11.
//  Copyright 2011 11870.com. All rights reserved.
//

#import "OosActivityEntry.h"
#import "../../Constants/OosNamespaces.h"

@implementation OosActivityVerb

+ (NSString *) extensionElementLocalName
{
	return @"verb";
}

@end

@implementation OosActivityEntry

- (void) addExtensionDeclarations
{
	[super addExtensionDeclarations];
	
	Class entryClass = [self class];

	[self addExtensionDeclarationForParentClass:entryClass childClasses:
	 // Activity Extension
	 [OosActivityVerb class], [OosActivityAtomActor class], 
	 [OosActivityAtomObject class],
	 nil];
}

- (OosActivityVerb *) verb
{
	return [self objectForExtensionClass: [OosActivityVerb class]];
}

- (OosActivityAtomActor *) actor
{
	return [self objectForExtensionClass: [OosActivityAtomActor class]];
}

- (OosActivityAtomObject *) object
{
	return [self objectForExtensionClass: [OosActivityAtomObject class]];
}

@end
